package com.ruoyi.logCen.service.impl;

import com.ruoyi.logCen.mapper.GeneralMapper;
import com.ruoyi.logCen.service.GeneralService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;


@Service
public class GeneralServiceImpl implements GeneralService {

    @Autowired
    private GeneralMapper generalMapper;

    @Override
    public Map<String, Object> getNextSeq(String seqName) {
        generalMapper.updateSeq(seqName);
        return generalMapper.getNextSeq(seqName);
    }
}
